package com.hengpeng.itfin.persist.impl;

import java.util.Date;

import org.springframework.stereotype.Repository;

import com.hengpeng.common.persist.AbstractDao;
import com.hengpeng.itfin.persist.TransferDao;
import com.hengpeng.itfinbase.persist.Transfer;
import com.hengpeng.itfinbase.persist.Transfer.TransferStatus;

@Repository
public class TransferDaoImpl extends AbstractDao<Transfer> implements TransferDao {

	@Override
	public int updateStatus(Long id, TransferStatus newStatus,
			TransferStatus oldStatus, String remark, Date updateTime) {
		return super.exeNamedQuery("transfer.updateStatus", new Object[] {newStatus,new Date(),remark,id,oldStatus});
	}

}
